import request from '@/utils/request'

// 查询因公牺牲军人遗属信息列表
export function listFamily_of_duty_soldier(query) {
  return request({
    url: '/archive_info/family_of_duty_soldier/list',
    method: 'get',
    params: query
  })
}

// 查询因公牺牲军人遗属信息详细
export function getFamily_of_duty_soldier(id) {
  return request({
    url: '/archive_info/family_of_duty_soldier/' + id,
    method: 'get'
  })
}

// 新增因公牺牲军人遗属信息
export function addFamily_of_duty_soldier(data) {
  return request({
    url: '/archive_info/family_of_duty_soldier',
    method: 'post',
    data: data
  })
}

// 修改因公牺牲军人遗属信息
export function updateFamily_of_duty_soldier(data) {
  return request({
    url: '/archive_info/family_of_duty_soldier',
    method: 'put',
    data: data
  })
}

// 删除因公牺牲军人遗属信息
export function delFamily_of_duty_soldier(id) {
  return request({
    url: '/archive_info/family_of_duty_soldier/' + id,
    method: 'delete'
  })
}

// 导出因公牺牲军人遗属信息
export function exportFamily_of_duty_soldier(query) {
  return request({
    url: '/archive_info/family_of_duty_soldier/export',
    method: 'get',
    params: query
  })
}